///////////////////////////////////////////////////////////////////////////////
//
//
//
///////////////////////////////////////////////////////////////////////////////

package controller
{
import flash.utils.getQualifiedClassName;

import model.UserProxy;

import model.vo.UserVO;

import org.kolonitsky.alexey.debug.DebugWrapper;

import org.puremvc.as3.interfaces.INotification;
import org.puremvc.as3.patterns.command.SimpleCommand;

/**
 *  Signin user in the application.
 */
public class UserSigninCommand extends SimpleCommand
{

    override public function execute(notification:INotification):void
    {
        super.execute(notification);

        DebugWrapper.trace("INFO: CMD > UserSignin");

        var userProxy:UserProxy = facade.retrieveProxy(UserProxy.NAME) as UserProxy;
        userProxy.signin(notification.getBody() as UserVO);
    }
}
}
